package com.oa.admin.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.core.PageResult;
import com.oa.admin.entity.Inventory;
import com.baomidou.mybatisplus.service.IService;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 库存表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface IInventoryService extends IService<Inventory> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<Inventory> findList(Integer pageNum, Integer pageSize);

    /**
    * 根据id查询
    */
    Inventory findInventoryById(String id);


    PageResult<Inventory> findInventoryList(Integer pageNum, Integer pageSize, String itemName, String warningStatus);

    void export(HttpServletResponse response);
}
